package com.ohxwj.modules.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ohxwj.modules.sys.dao.SysXcxDao;
import com.ohxwj.modules.sys.entity.SysXcxEntity;
import com.ohxwj.modules.sys.service.SysXcxService;

/**
 * 小程序功能管理
 *
 * @author xuwenjie
 * @date 2018-01-13 22:41:18
 */

@Service("sysXcxService")
public class SysXcxServiceImpl implements SysXcxService {
	@Autowired
	private SysXcxDao sysXcxDao;
	
	@Override
	public SysXcxEntity queryObject(Long xcxId){
		return sysXcxDao.queryObject(xcxId);
	}
	
	@Override
	public List<SysXcxEntity> queryList(Map<String, Object> map){
		return sysXcxDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysXcxDao.queryTotal(map);
	}
	
	@Override
	public void save(SysXcxEntity sysXcx){
		sysXcxDao.save(sysXcx);
	}
	
	@Override
	public void update(SysXcxEntity sysXcx){
		sysXcxDao.update(sysXcx);
	}
	
	@Override
	public void delete(Long xcxId){
		sysXcxDao.delete(xcxId);
	}
	
	@Override
	public void deleteBatch(Long[] xcxIds){
		sysXcxDao.deleteBatch(xcxIds);
	}

	@Override
	public void deleteAll(){
		sysXcxDao.deleteAll();
	}

	@Override
	public List<SysXcxEntity> queryListByRole(Map<String, Object> map){
		return sysXcxDao.queryListByRole(map);
	}

	@Override
	public List<HashMap> getRoleFunction(Map<String, Object> map){
		return sysXcxDao.getRoleFunction(map);
	}
	
}
